const fs = require('fs'),
crypto = require("crypto");

function getFileMd5(filename, resolve) {
	fs.readFile(filename, (err, data) => {
		resolve(crypto.createHash("md5").update(data).digest("hex"))
	})
}

getFileMd5('D:\\Program Files\\nodejs\\work\\zoro\\server\\util\\OAuth.js', md5 => {
	console.log(md5)
})
